<template>
	<view >
		<view class="smart-container">
			1.容器
		</view>
		<view class="smart-panel-h" @click="goDetailPage('view')"><text>&emsp;&nbsp;view视图</text></view>
		<view class="smart-panel-h" hidden="false"><text>&emsp;&nbsp;scroll-view滚动视图</text></view>
		<view class="smart-panel-h" hidden="false"><text>&emsp;&nbsp;swiper可滑动视图</text></view>
		
		<view class="smart-container">2.基础内容</view>
		<view class="smart-panel-h"@click="goDetailPage('text')">&emsp;&nbsp;text文本编辑</view>
		<view class="smart-panel-h" @click="goDetailPage('icon')">&emsp;&nbsp;icon图标</view>
		
		<view class="smart-container">3.表单组件</view>
		<view class="smart-panel-h" @click="goDetailPage('button')">&emsp;&nbsp;button按钮</view>
		<view class="smart-panel-h" @click="goDetailPage('checkbox')">&emsp;&nbsp;checkbox多选框</view>
		<view class="smart-panel-h" @click="goDetailPage('label')">&emsp;&nbsp;label标签组件</view>
		<view class="smart-panel-h" @click="goDetailPage('input')">&emsp;&nbsp;input输入框</view>
		<view class="smart-panel-h" @click="goDetailPage('textarea')">&emsp;&nbsp;textarea多行文本输入框</view>
		<view class="smart-panel-h" @click="goDetailPage('form')">&emsp;&nbsp;form表单</view>
		
		<view class="smart-container">4.导航组件</view>
		<view class="smart-panel-h" @click="goDetailPage('navigator')">&emsp;&nbsp;navigator</view>
		
		
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			goDetailPage(e) {
				
				if(typeof e=='string') {
					uni.navigateTo({
						url:'/pages/components/'+e+'/'+e
						// url:'/pages/components/view/view'
					});
				}else{
					uni.navigateTo({
						url:e.url
					});
				}
			}
			
		}
	}
</script>

<style>

</style>
